package com.zmm.util.document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 接口项目分组
 * @author 900045
 * @description:
 * @name IdoGroup
 * @date By 2021-10-26 15:20:47
 */
public class IdoGroup implements Serializable {

	/**  */
	private static final long serialVersionUID = 3699959462831832446L;

	private String            name;
	/** 请求前缀 */
	private String            pathPrefix;

	private List<IdoItem> items;

	public void add(IdoItem item) {
		if (items == null) {
			items = new ArrayList<>();
		}
		items.add(item);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPathPrefix() {
		return pathPrefix;
	}

	public void setPathPrefix(String pathPrefix) {
		this.pathPrefix = pathPrefix;
	}

	public List<IdoItem> getItems() {
		return items;
	}

	public void setItems(List<IdoItem> items) {
		this.items = items;
	}
}
